package com.ansatsing.adapter.ducks;

public class DuckTestDrive {

	public static void main(String[] args) {
		System.out.println("真鸭子。。。。。。。。。。");
		Duck realDuck = new MallardDuck();
		realDuck.quack();
		realDuck.fly();
		System.out.println("真火鸡。。。。。。。。。。");
		Turkey realTurkey = new WildTurkey();
		realTurkey.gobble();
		realTurkey.fly();
		System.out.println("火鸡变成假鸭子。。。。。。。。。。");
		Duck fakeDuck = new TurkeyAdapter(realTurkey);
		fakeDuck.quack();
		fakeDuck.fly();
	}

}
